package cn.jy.nvr.utils;

/**
 * 增删该的Ajax请求响应，列表就是直接获取数据或者跳转页面
 * @author Administrator
 *
 */
public class AjaxResult {

	private Boolean success = true;//默认成功
	private String message = "操作成功！";//成功默认提示信息
	public Boolean getSuccess() {
		return success;
	}
	public void setSuccess(Boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	@Override
	public String toString() {
		return "AjaxResult [success=" + success + ", message=" + message + "]";
	}
	
	//默认就是成功，并且提示信息为"操作成功！"
	public AjaxResult() {
		super();
	}
	
	//失败以后具体提示
	public AjaxResult( String message) {
		this.success = false;
		this.message = message;
	}
	
	
	
	
	
	
}
